package com.example.demo1122.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo1122.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionMapper extends BaseMapper<Question> {

    int insert(Question question);

    boolean update(Question question);

    boolean isConversationIDExists(Integer conversationID);

    List<Question> selectAllByConversationID(@Param("conversationID") Integer conversationID);

    int getQuestionNum(@Param("conversationID") Integer conversationID);
}
